import { useTemplate } from "@sker/runtime"
import { toSuccess } from "@sker/core"
import type { ProLayoutProps } from '@ant-design/pro-layout'

export const getMesage = async () => { }

export const getTheme = async () => {
    const layout: ProLayoutProps = {
        fixSiderbar: true,
        fixedHeader: true,
        suppressSiderWhenMenuEmpty: true,
        layout: 'mix'
    }
    return {
        layout: layout,
        token: {
            sider: {
                colorMenuBackground: '#222653',
                colorTextMenu: '#B3C0E7',
                colorTextMenuSecondary: '#B3C0E7',
                colorTextMenuSelected: '#FFFFFF',
                colorBgMenuItemSelected: '#3A55D5',
                colorTextMenuTitle: '#B3C0E7',
                colorMenuItemDivider: '#B3C0E7',
                colorTextMenuActive: '#FFFFFF',
                colorTextMenuItemHover: '#FFFFFF'
            }
        },
    }
}

export const get = async () => {
    await useTemplate({ isDev: true })
}

export const post = async () => {
    return toSuccess({})
}
